<?php

class TestModel extends Model {

    protected $_logic_table = 'admin';

    public function checkUsername($username) {
        $sql = "SELECT * FROM {$this->_table} WHERE admin_name = '$username' LIMIT 1";
        return $this->_dao->getOne($sql);
    }
}